/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.paydetail;

import com.xingkeduo.dto.MarketDto;
import lombok.Data;

@Data
public class Coupon {

    private String id;
    private String title;

    public void covert(String marketingType, MarketDto marketDto){
        if( marketDto!=null && "1".equals(marketingType)){
            this.id= String.valueOf(marketDto.getMarketingId());
            this.title=marketDto.getMarketingName();
        }else {
            this.id="0";
            this.title="";
        }

    }
}